import userMgr from '@/biz/user'
import articleApi from '@/config/server/api/base.js'
import buildingApi from '@/config/server/api/building.js'


function articleLabel(info) {
  return articleApi.article.articleLabel.fetch(info)
}

function oneExamine(info) {
  return articleApi.article.oneExamine.fetch(info)
}

function oneAlreadyExamine(info) {
  return articleApi.article.oneAlreadyExamine.fetch(info)
}

function firstExamine(info) {
  return articleApi.article.firstExamine.fetch(info)
}

function twoExamine(info) {
  return articleApi.article.twoExamine.fetch(info)
}

function twoAlreadyExamine(info) {
  return articleApi.article.twoAlreadyExamine.fetch(info)
}

function secondExamine(info) {
  return articleApi.article.secondExamine.fetch(info)
}

function articleGet(info) {
  return articleApi.article.articleGet.fetch(info)
}

function articleDetail(info) {
  return articleApi.article.articleDetail.fetch(info)
}

function cityBaseList(info) {
  return articleApi.city.cityBaseList.fetch(info)
}

function buildingList(info) {
  return buildingApi.house.buildingList.fetch(info)
}

function articleCreate(info) {
  info.updaterId = userMgr.info().userId
  info.createrId = userMgr.info().userId
  return articleApi.article.articleCreate.fetch(info)
}

function articleUpdate(info) {
  info.updaterId = userMgr.info().userId
  return articleApi.article.articleUpdate.fetch(info)
}

function articleList(info) {
  return articleApi.article.articleList.fetch(info)
}

function articleDelete(info) {
  return articleApi.article.articleDelete.fetch(info)
}

function articleReason(info) {
  return articleApi.article.articleReason.fetch(info)
}

function checkHasUnConfigArticle(info) {
  return articleApi.article.checkHasUnConfigArticle.fetch(info)
}
function getConfigArticle(info) {
  return articleApi.article.getConfigArticle.fetch(info)
}
function updateConfigArticle(info) {
  return articleApi.article.updateConfigArticle.fetch(info)
}


export default {
  articleLabel,
  oneExamine,
  oneAlreadyExamine,
  firstExamine,

  twoExamine,
  twoAlreadyExamine,
  secondExamine,
  articleGet,
  articleDetail,
  cityBaseList,
  buildingList,
  articleCreate,
  articleUpdate,
  articleList,
  articleDelete,
  articleReason,
  checkHasUnConfigArticle,
  getConfigArticle,
  updateConfigArticle
}